package com.app.service;

import com.app.model.Article;
import com.app.request.ArticleRequest;
import com.app.request.PageParamRequest;
import com.app.response.ArticleResponse;
import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * <p>
 * 文章管理 服务类
 * </p>
 *
 * @author ghoul
 * @since 2024-12-17
 */
public interface IArticleService extends IService<Article> {

    PageInfo<ArticleResponse> getAdminList(ArticleRequest request, PageParamRequest pageParamRequest);

    PageInfo<ArticleResponse> getSmallList(ArticleRequest request, PageParamRequest pageParamRequest);

    boolean create(Article businessRequest);

    boolean deleteById(Integer id);

    ArticleResponse getDetail(Integer id);

    boolean updateStatus(Integer id,boolean status);


    Article instructions();
}
